#!/bin/sh
echo 4096 > /sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_hugepages
echo 4096 > /sys/devices/system/node/node1/hugepages/hugepages-2048kB/nr_hugepages
mkdir /mnt/huge -p
mount -t hugetlbfs nodev /mnt/huge

modprobe uio_pci_generic
/root/dpdk-stable-20.11.1/usertools/dpdk-devbind.py -b uio_pci_generic 0000:42:00.0
insmod /root/dpdk-stable-20.11.1/dpdkbuild/kernel/linux/kni/rte_kni.ko carrier=on
